package com.ys.entity.storage;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;
/**
*/
@Table(name="TCC_AssemblyMaintain", catalog="Id")
public class TccAssemblyMaintain extends BaseEntity<TccAssemblyMaintain> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Guid", nameJava="guid", typeDataBase="varchar")
	private String guid;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="Way", nameJava="way", typeDataBase="varchar")
	private String way;
	@YsField(nameDataBase="ProductName", nameJava="productName", typeDataBase="varchar")
	private String productName;
	@YsField(nameDataBase="ProductID", nameJava="productID", typeDataBase="varchar")
	private String productID;
	@YsField(nameDataBase="length", nameJava="length", typeDataBase="decimal")
	private BigDecimal length;
	@YsField(nameDataBase="Width", nameJava="width", typeDataBase="decimal")
	private BigDecimal width;
	@YsField(nameDataBase="Height", nameJava="height", typeDataBase="decimal")
	private BigDecimal height;
	@YsField(nameDataBase="Weight", nameJava="weight", typeDataBase="decimal")
	private BigDecimal weight;
	@YsField(nameDataBase="CreateUser", nameJava="createUser", typeDataBase="varchar")
	private String createUser;
	@YsField(nameDataBase="UpdateUser", nameJava="updateUser", typeDataBase="varchar")
	private String updateUser;
	@YsField(nameDataBase="ProductLength", nameJava="productLength", typeDataBase="decimal")
	private BigDecimal productLength;
	@YsField(nameDataBase="ProductWidth", nameJava="productWidth", typeDataBase="decimal")
	private BigDecimal productWidth;
	@YsField(nameDataBase="ProductHeight", nameJava="productHeight", typeDataBase="decimal")
	private BigDecimal productHeight;
	@YsField(nameDataBase="ProductWeight", nameJava="productWeight", typeDataBase="decimal")
	private BigDecimal productWeight;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccAssemblyMaintain setId(Long id) {
		this.id = id;
		return this;
	}
	public String getGuid() {
		return guid;
	}
	public TccAssemblyMaintain setGuid(String guid) {
		this.guid = guid;
		return this;
	}
	public String getName() {
		return name;
	}
	public TccAssemblyMaintain setName(String name) {
		this.name = name;
		return this;
	}
	public String getWay() {
		return way;
	}
	public TccAssemblyMaintain setWay(String way) {
		this.way = way;
		return this;
	}
	public String getProductName() {
		return productName;
	}
	public TccAssemblyMaintain setProductName(String productName) {
		this.productName = productName;
		return this;
	}
	public String getProductID() {
		return productID;
	}
	public TccAssemblyMaintain setProductID(String productID) {
		this.productID = productID;
		return this;
	}
	public BigDecimal getLength() {
		return length;
	}
	public TccAssemblyMaintain setLength(BigDecimal length) {
		this.length = length;
		return this;
	}
	public BigDecimal getWidth() {
		return width;
	}
	public TccAssemblyMaintain setWidth(BigDecimal width) {
		this.width = width;
		return this;
	}
	public BigDecimal getHeight() {
		return height;
	}
	public TccAssemblyMaintain setHeight(BigDecimal height) {
		this.height = height;
		return this;
	}
	public BigDecimal getWeight() {
		return weight;
	}
	public TccAssemblyMaintain setWeight(BigDecimal weight) {
		this.weight = weight;
		return this;
	}
	public String getCreateUser() {
		return createUser;
	}
	public TccAssemblyMaintain setCreateUser(String createUser) {
		this.createUser = createUser;
		return this;
	}
	public String getUpdateUser() {
		return updateUser;
	}
	public TccAssemblyMaintain setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
		return this;
	}
	public BigDecimal getProductLength() {
		return productLength;
	}
	public TccAssemblyMaintain setProductLength(BigDecimal productLength) {
		this.productLength = productLength;
		return this;
	}
	public BigDecimal getProductWidth() {
		return productWidth;
	}
	public TccAssemblyMaintain setProductWidth(BigDecimal productWidth) {
		this.productWidth = productWidth;
		return this;
	}
	public BigDecimal getProductHeight() {
		return productHeight;
	}
	public TccAssemblyMaintain setProductHeight(BigDecimal productHeight) {
		this.productHeight = productHeight;
		return this;
	}
	public BigDecimal getProductWeight() {
		return productWeight;
	}
	public TccAssemblyMaintain setProductWeight(BigDecimal productWeight) {
		this.productWeight = productWeight;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccAssemblyMaintain setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccAssemblyMaintain setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccAssemblyMaintain setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccAssemblyMaintain tccAssemblyMaintain(
		String guid,
		String name,
		String way,
		String productName,
		String productID,
		BigDecimal length,
		BigDecimal width,
		BigDecimal height,
		BigDecimal weight,
		String createUser,
		String updateUser,
		BigDecimal productLength,
		BigDecimal productWidth,
		BigDecimal productHeight,
		BigDecimal productWeight,
		Integer status
			) {
		TccAssemblyMaintain entity = new TccAssemblyMaintain();
		entity.setGuid(guid);
		entity.setName(name);
		entity.setWay(way);
		entity.setProductName(productName);
		entity.setProductID(productID);
		entity.setLength(length);
		entity.setWidth(width);
		entity.setHeight(height);
		entity.setWeight(weight);
		entity.setCreateUser(createUser);
		entity.setUpdateUser(updateUser);
		entity.setProductLength(productLength);
		entity.setProductWidth(productWidth);
		entity.setProductHeight(productHeight);
		entity.setProductWeight(productWeight);
		entity.setStatus(status);
		return entity;
	}
}